package org.jeecg.modules.power.device.service;

import org.jeecg.modules.app.v1.device.entity.ApiDeviceCategoryEntity;
import org.jeecg.modules.power.device.entity.YlDeviceCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.exception.JeecgBootException;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.List;

/**
 * @Description: 设备类型表
 * @Author: jeecg-boot
 * @Date:   2024-07-16
 * @Version: V1.0
 */
public interface IYlDeviceCategoryService extends IService<YlDeviceCategory> {

	/**根节点父ID的值*/
	public static final String ROOT_PID_VALUE = "0";
	
	/**树节点有子节点状态值*/
	public static final String HASCHILD = "1";
	
	/**树节点无子节点状态值*/
	public static final String NOCHILD = "0";

	/**新增节点*/
	void addYlDeviceCategory(YlDeviceCategory ylDeviceCategory);
	
	/**修改节点*/
	void updateYlDeviceCategory(YlDeviceCategory ylDeviceCategory) throws JeecgBootException;
	
	/**删除节点*/
	void deleteYlDeviceCategory(String id) throws JeecgBootException;

	/**查询所有数据，无分页*/
    List<YlDeviceCategory> queryTreeListNoPage(QueryWrapper<YlDeviceCategory> queryWrapper);

	/**============================================接口方法=============================================================================*/
	/**
	 * 设备分类，树形数据
	 * @return
	 */
	List<ApiDeviceCategoryEntity> getDeviceCategory();

	/**============================================接口方法=============================================================================*/

}
